# -*- coding: utf-8 -*-
# @Author  : suny570
# @Time    : 2022-04-04 22:12

import hashlib

def createmd5(resource):
    creatmd5 = hashlib.md5()
    creatmd5.update(resource.encode(encoding='utf-8'))
    return creatmd5.hexdigest()
